home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14850 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: dispatch.news.demon.net!demon!broadwtr.demon.co.uk
  2. From: womble@broadwtr.demon.co.uk (Dean Richardson)
  3. Newsgroups: comp.lang.c++
  4. Subject: HOW: Setting a FAT Directory Attibute
  5. Date: Tue, 02 Apr 1996 19:43:28 GMT
  6. Message-ID: <828441810.13371@broadwtr.demon.co.uk>
  7. NNTP-Posting-Host: broadwtr.demon.co.uk
  8. X-NNTP-Posting-Host: broadwtr.demon.co.uk
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi all - 
  12.  
  13. I wish to set an attribute upon a directory.  The directory could be
  14. on FAT (DOS), VFAT (Windows 95) or Netware file server - however I
  15. wish to use an operating system / ANSI call so that any TSRs (eg
  16. Netx/VLM) will redirect the call as appropriate.  I don't want to be
  17. operating system specific.
  18.  
  19. I'm using _rtl_chmode() (Borand C++ 4.5, DOS application) to change
  20. attributes upon files - no problem.  I don't think I can use this for
  21. a directory (eg, set ReadOnly on "C:\\TEMP\\ .").  Or can I.
  22.  
  23. In case you're wondering why I want to do this, my firm requires I
  24. write a program which takes a copy of the directory structure on a
  25. machine.  The directory structure must include directory attributes -
  26. for example a Windows 95 briefcase directory has to be marked ReadOnly
  27. for it to work properly.
  28.  
  29. Responses by EMail would be appreciated - I don't get to this
  30. conference very often.
  31.  
  32. Many thanks,
  33. Dean 
  34. ---
  35. Womble@broadwtr.demon.co.uk
  36.  
  37.